package com.sf.dlb.jpa.repository;

import com.sf.dlb.jpa.model.UserReportInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 用户举报列表 Repository
 *
 * Created by jing.tan on 2018/5/21.
 */
@Repository
public interface UserReportRepository extends JpaRepository<UserReportInfo, Long> {
    /**
     * 根据用户id,举报类型-查询
     * @param userId
     * @param reportType
     * @param delFlag
     * @return
     */
    List<UserReportInfo> findByUserIdAndReportTypeAndDelFlag(String userId,String reportType,String delFlag);
    /**
     * 根据id-查询
     * @param id
     * @return
     */
    UserReportInfo findById(Long id);

}